package com.lottery.system.service.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: xiaoxie
 * create: 2024-09-09 18:44
 * @BelongsProject: lottery-system
 * @BelongsPackage: com.lottery.system.service.enums
 * description: 用户状态
 */
@AllArgsConstructor
@Getter
public enum ActivityUserStatusEnum {
    INIT(1, "初始化"),

    COMPLETED(2, "已被抽中");


    private final Integer code;

    private final String message;

    public static ActivityUserStatusEnum forName(String name) {
        for (ActivityUserStatusEnum activityUserStatusEnum : ActivityUserStatusEnum.values()) {
            if (activityUserStatusEnum.name().equalsIgnoreCase(name)) {
                return activityUserStatusEnum;
            }
        }
        return null;
    }

}
